package com.fzu.normalservice.service;

import com.fzu.commonutil.util.PageVO;
import com.fzu.commonutil.entity.AddressBook;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fzu.commonutil.entity.User;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyq
 * @since 2023-03-26
 */
public interface AddressBookService extends IService<AddressBook> {


    /**
     * 获取地址簿列表
     * @param addressBook
     * @param user
     * @return
     */
    PageVO ListAll(AddressBook addressBook, User user, Integer pageNum, Integer pageSize);

    /**
     * 更新地址簿
     * @param addressBook
     */
    void updateAddressBook(AddressBook addressBook);

    /**
     * 删除地址簿
     * @param id
     */
    void deleteAddressBook(Integer id);
}
